<%@ Page Language="C#" AutoEventWireup="true" CodeFile="FilterProject.aspx.cs" Inherits="FilterProject" culture="auto" uiculture="auto" meta:resourcekey="PageResource1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ OutputCache Duration="1" VaryByParam="none" %> 

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <base target="_self" />
<link href="Ip.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div style="text-align: center">
        <table style="width: 506px">
            <tr>
                <td style="text-align: right; height: 30px;">
                    <asp:Label ID="lblProduct" runat="server" Text="Product" meta:resourcekey="lblProductResource1"></asp:Label></td>
                <td style="width: 134px; text-align: left; height: 30px;">
                    <asp:TextBox ID="txtProduct" runat="server" Enabled="False" meta:resourcekey="txtProductResource1"></asp:TextBox></td>
                <td style="width: 134px; text-align: left; height: 30px;">
                    <asp:Button ID="btnAdd" runat="server" OnClick="btnAdd_Click" Text="Add" Width="143px" meta:resourcekey="btnAddResource1" /></td>
            </tr>
            <tr>
                <td style="text-align: right; height: 30px;">
                    <asp:Label ID="lblProjectCode" runat="server" Text="Project Code" meta:resourcekey="lblProjectCodeResource1"></asp:Label></td>
                <td style="width: 134px; text-align: left; height: 30px;">
                    <asp:TextBox ID="txtProjectCode" runat="server" meta:resourcekey="txtProjectCodeResource1"></asp:TextBox></td>
                <td style="width: 134px; text-align: left; height: 30px;">
                    <asp:Button ID="btnSearch" runat="server" Text="Search" Width="143px" OnClick="btnSearch_Click" meta:resourcekey="btnSearchResource1" />
            </tr>
        </table>
    </div>
            <div>
            <fieldset style="width:800px; text-align: center;">
                <asp:GridView ID="gvwResult" runat="server" BackColor="#DEBA84" BorderColor="#660000"
                    BorderStyle="None" BorderWidth="1px" CellPadding="3" DataSourceID="ODSProject"
                    GridLines="Vertical" AllowPaging="True" AutoGenerateColumns="False" Height="76px" Width="819px" DataKeyNames="ProjectCode" meta:resourcekey="gvwResultResource1">
                    <Columns>
                        <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                            <ItemTemplate>
                                &nbsp;<asp:CheckBox ID="chkSelect" runat="server" meta:resourcekey="chkSelectResource1" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="Project Code" DataField="ProjectCode" SortExpression="ProjectCode" meta:resourcekey="BoundFieldResource1" />
                        <asp:BoundField HeaderText="Country" DataField="Country" SortExpression="Country" meta:resourcekey="BoundFieldResource2" />
                        <asp:BoundField HeaderText="Title" DataField="Title" SortExpression="Title" meta:resourcekey="BoundFieldResource3" />
                        <asp:BoundField HeaderText="Status" DataField="Status" SortExpression="Status" meta:resourcekey="BoundFieldResource4" />
                    </Columns>
                    <HeaderStyle CssClass="GridHeaderStyle" ForeColor="White" />
                    <RowStyle CssClass="GridRowStyle"/>
                    <AlternatingRowStyle CssClass="GridAltRowStyle"/>
                    <SelectedRowStyle CssClass="GridSelectedRowStyle"/>
                    <PagerStyle CssClass="GridPagerStyle"/>
                    <FooterStyle CssClass="GridFooterStyle"/>
                </asp:GridView>
                <asp:ObjectDataSource ID="ODSProject" runat="server" OldValuesParameterFormatString="original_{0}"
                    SelectMethod="GetsProjects" TypeName="ClassLibrary.BusinessLayer.Facade.ProjectsFacade" OnSelecting="ODSProject_Selecting">
                    <SelectParameters>
                        <asp:Parameter Name="SPName" Type="String" />
                        <asp:Parameter Name="param" Type="Object" />
                    </SelectParameters>
                </asp:ObjectDataSource>
                
            </fieldset> 
            </div>

    </form>
</body>
</html>
